home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 4.0 KB | 170 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:TypLsItr.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODTypeSetIterator_xh
- #define SOM_ODTypeSetIterator_xh
-
- class ODTypeSetIterator;
-
- #define ODTypeSetIterator_MajorVersion 0
- #define ODTypeSetIterator_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODTypeSetIterator_API
- #define ODTypeSetIterator_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODTypeSet;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODTypeSetIterator Class */
- SOMEXTERN SOMClass * SOMLINK ODTypeSetIteratorNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODTypeSetIterator class object, and the methods it introduces. */
- typedef struct ODTypeSetIteratorClassDataStructure {
- SOMClass *classObject;
- somMToken InitODTypeSetIterator;
- somMToken IsNotComplete;
- somMToken First;
- somMToken Next;
- } ODTypeSetIteratorClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODTypeSetIteratorClassDataStructure * ODTypeSetIteratorGetClassData ( void );
- # undef ODTypeSetIteratorClassData
- # define ODTypeSetIteratorClassData (*ODTypeSetIteratorGetClassData())
- #else
- SOMEXTERN ODTypeSetIteratorClassDataStructure ODTypeSetIteratorClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODTypeSetIterator ODTypeSetIteratorClassData.classObject
-
- /* The API to parentMtabs for ODTypeSetIterator, and the instance data it introduces. */
- SOMEXTERN struct ODTypeSetIteratorCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODTypeSetIteratorCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODTypeSetIterator
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODTypeSetIterator_InitODTypeSetIterator)(ODTypeSetIterator *somSelf, Environment *ev,
- ODTypeSet* typeSet);
- typedef ODBoolean (* SOMLINK somTD_ODTypeSetIterator_IsNotComplete)(ODTypeSetIterator *somSelf, Environment *ev);
- typedef ODType (* SOMLINK somTD_ODTypeSetIterator_First)(ODTypeSetIterator *somSelf, Environment *ev);
- typedef ODType (* SOMLINK somTD_ODTypeSetIterator_Next)(ODTypeSetIterator *somSelf, Environment *ev);
- }
-
- #endif /* ODTypeSetIterator_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODTypeSetIterator
- */
- class ODTypeSetIterator : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODTypeSetIteratorClassData.classObject)
- ODTypeSetIteratorNewClass(ODTypeSetIterator_MajorVersion,ODTypeSetIterator_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODTypeSetIteratorClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODTypeSetIteratorClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: InitODTypeSetIterator */
- void InitODTypeSetIterator(Environment *ev,
- ODTypeSet* typeSet)
- {
- SOM_Resolve(this,ODTypeSetIterator,InitODTypeSetIterator)
- (this,ev,typeSet);
- }
-
-
- /* public method: IsNotComplete */
- ODBoolean IsNotComplete(Environment *ev)
- {
- return SOM_Resolve(this,ODTypeSetIterator,IsNotComplete)
- (this,ev);
- }
-
-
- /* public method: First */
- ODType First(Environment *ev)
- {
- return SOM_Resolve(this,ODTypeSetIterator,First)
- (this,ev);
- }
-
-
- /* public method: Next */
- ODType Next(Environment *ev)
- {
- return SOM_Resolve(this,ODTypeSetIterator,Next)
- (this,ev);
- }
-
-
-
- }; /* ODTypeSetIterator */
-
-
-
- #endif /* SOM_ODTypeSetIterator_xh */
-